package casa.depesos.app.com.http.req;

import casa.depesos.app.com.http.HttpReq;
import casa.depesos.app.com.http.Req;
import casa.depesos.app.com.http.ReqCallback;
import casa.depesos.app.com.http.bean.ExtendBean;
import casa.depesos.app.com.http.parser.ExtendParser;
import okhttp3.FormBody;

public class ExtendReq implements HttpReq<ExtendBean> {
    String id;

    public ExtendReq(String id) {
        this.id = id;
    }

    @Override
    public void req(ReqCallback<ExtendBean> callback) {//   queryExtendDetail
        FormBody.Builder builder = new FormBody.Builder();
        builder.add("lref", id);
        Req.post("/app/financial/retrieveLoanExtensionDetails", getParam(), getHeader(), builder.build(), new ExtendParser(), callback, this);
    }
}
